package com.base.mapper.voipmapper;


import com.base.po.voip.Refund;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author PQ
 * @Date 2019/8/23 11:25
 */
public interface RefundMapper {

    int  insertNews(Refund refund);

    Integer countByAll(@Param("userId") String userId, @Param("orderId") String orderId, @Param("parentId") String parentId,@Param("createTime") String createTime, @Param("status") String status,@Param("orderNum")String orderNum);

    List<Refund> selectByAll(@Param("page") Page page, @Param("userId") String userId, @Param("orderId") String orderId, @Param("parentId") String parentId, @Param("createTime")String createTime, @Param("status") String status,@Param("orderNum") String orderNum);

    void updateStatus(@Param("id") String id, @Param("status") int status);

    int isRefund(@Param("orderId") String orderId);

    String getIdByOrderId(@Param("orderId") String orderid);
}
